import request from '@/utils/request'

// 查询教改项目结课列表
export function listDetail(query) {
  return request({
    url: '/village/detail/list',
    method: 'get',
    params: query
  })
}

export function nolistDetail(query) {
  return request({
    url: '/village/detail/nolist',
    method: 'get',
    params: query
  })
}

// 查询教改项目结课详细
export function getDetail(id) {
  return request({
    url: '/village/detail/' + id,
    method: 'get'
  })
}

// 新增教改项目结课
export function addDetail(data) {
  return request({
    url: '/village/detail',
    method: 'post',
    data: data
  })
}

// 修改教改项目结课
export function updateDetail(data) {
  return request({
    url: '/village/detail',
    method: 'put',
    data: data
  })
}

// 删除教改项目结课
export function delDetail(id) {
  return request({
    url: '/village/detail/' + id,
    method: 'delete'
  })
}

export function inputDetail(file) {
  return request({
    url: '/village/detail/input',
    method: 'post',
    data:file
  })
}
